#-*- coding:utf-8-*-
import logging
FORMAT = '%(asctime)-15s %(clientIp)s %(user)-8s %(message)s'
logging.basicConfig(format=FORMAT)
d = {'clientIp':'192.168.0.1','user':'fbloggs'}
logger = logging.getLogger('tcpserver')
logger.warning('Protocal proble: %s', 'connection reset',extra=d)
